package com.baizhi.lfk.service;


import com.baizhi.lfk.entity.Category;
import com.baizhi.lfk.vo.CategoryVO;
import com.baizhi.lfk.vo.PageVO;
import com.baizhi.lfk.vo.ResultVO;

import java.util.List;

public interface CategoryService {
    //查询所有一级类别
    public CategoryVO queryOneCategoryPage(PageVO pageVO);
    //添加类别 （一级&二级）
    public ResultVO registCategory(Category category);

    //根据id查询类别信息
    public Category queryById(Integer id);

    //修改
    public ResultVO modifyCategory(Category category);

    //删除
    public ResultVO removeCategory(Category category);

    //查询一级类别 下 所有的二级类别
    public CategoryVO queryTwoCategoryPage(PageVO pageVO);

    //查询所有一级类别集合
    public List<Category> queryAllOneCategory();
}
